<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{&SITE_TITLE}</title>
    <link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/ts_common.js"></script>
    </head>
    <body>
       <div id="container">
                                       <div class="tab">
                                <ul>
                                        <li> <a href="__URL__/index/">招贴种类管理</a></li>
                                        <li><a class="on" href="__URL__/adminPoster/">招贴管理</a></li>
                                        <li> <a  href="__URL__/add/">增加招贴</a></li>
                                </ul>
                        </div>
              <form method="post" action="__URL__/adminPoster">
           <table class="tableborder" width="100%">
          <tbody>
            <tr class="top">
              <td class="border" colspan="2"></td>
            </tr>
            <tr>
              <th class="header" colspan="2">招贴板查询</th>
            </tr>
            <tr class="label">
              <th>说明</th>
              <th>条件</th>
            </tr>
            
            <tr class="cell">
              <td class="altbg1">
                <b>用户名:</b>
                <br/>
                <span class="smalltxt">根据用户名查询</span>
              </td>
              <td class="altbg2"><input name="name" class="txt" value="{$name}"/></td>
            </tr>
        
            <tr class="cell">
              <td class="altbg1">
                <b>用户Id</b>
                <br/>
                <span class="smalltxt">根据用户id</span>
              </td>
              <td class="altbg2"><input name="uid" class="txt" value="{$uid}"/> 多个用户用逗号隔开</td>
            </tr>
            
            <tr class="cell">
              <td class="altbg1">
                <b>招贴分类</b>
                <br/>
                <span class="smalltxt">招贴分类</span>
              </td>
              <td class="altbg2">
                <select name="pid">
                    <option value=0>请选择分类</option>
                    <volist name="posterType" k="key" id="vo">
                        <option value="{$key}" <php>if($key == $_POST['pid'])echo "selected";</php>>{$vo}</option>
                    </volist>
                </select>
              </td>
            </tr>            
            
            <tr class="cell">
              <td class="altbg1">
                <b>招贴二级分类</b>
                <br/>
                <span class="smalltxt">招贴二级分类</span>
              </td>
              <td class="altbg2">
                <select name="type">
                    <option value=0>请选择二级分类</option>
                    <volist name="smallType" k="key" id="vo">
                        <option value="{$key}" <php>if($key == $_POST['type'])echo "selected";</php>>{$vo}</option>
                    </volist>
                </select>
              </td>
            </tr>
                  
            <tr>
              <td class="footer" colspan="2">
                <input type="submit" class="submit" value="提交" />
              </td>
            </tr>
          </tbody>

        </table>
    </form>
       
       
       
        <form action="__URL__/doDeletePoster"  method="post">
            <table class="tableborder" width="100%">
                <tr>
                    <td class="header" colspan="5">浏览全部动态</td>
                </tr>

                <tr class="cell altbg2">
                    <th width="5%" align="left">操作</th>
                    <th width="20%" align="left">发起者</th>
                    <th width="45%" align="left">标题</th>
                    <th width="20%" align="left">时间</th>
                    <th width="20%" align="left">管理</th>
                </tr>
  
                <volist name="data" id="vo">
                    <tr class="cell altbg1">
                        <td>
                            <input name="id[]" type="checkbox" class="feed_id" id="checkbox" value="{$vo.id}"/>
                            </td>
                            <td>
                            <a href="__TS__/space/id/{$vo.uid}" target="_blank">{$vo.name}</a>
                        </td>
                        <td><a href="__APP__/Index/posterDetail/id/{$vo.id}" target="_blank">{$vo.title}</a></td>
                        <td>{$vo.cTime|friendlyDate}</td>
                        <td><a href="__URL__/doDeletePoster/id/{$vo.id}">删除</a></td>
                    </tr>

                </volist>

                <tr class="cell altbg2">
                    <td colspan="4"><input name="checkbox5" type="checkbox" class="checkbox" id="checkAll" />
                        全选
                        <input name="button" type="submit" class="button" id="button" value="删除所选项"/>
                    </td>
                </tr>
              
            </table>
        </form>
            <div id="Pagination" class="pagination">{$html} </div>
            
        </div>
    </body>
</html>
